﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09_Console
{
    internal class Teacher
    {
        public string Name { get; set; }
        public DateTime Birthday { get; set; }

        // 只读属性
        public int Age { get { return DateTime.Now.Year - Birthday.Year; } }
        public int GongZi { get; init; } 
    }
}
